package com.suredy.app.porject.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.suredy.app.porject.model.sp.Money;

/**
 * 招标资金情况
 * 
 * @author VIVID.G
 * @since 2015-11-5
 * @version v0.1
 */
@Entity
@Table(name = "tb_bid_money")
public class BidMoney extends Money {

	private static final long serialVersionUID = 1L;

	/* 关联的招标信息 */
	@JsonIgnore
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "bid_id")
	private Bid bid;

	public Bid getBid() {
		return bid;
	}

	public void setBid(Bid bid) {
		this.bid = bid;
	}

}
